package edu.xust.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@JsonIgnoreProperties(value = {"handler","serialVersionUID"})
public class Audits implements Serializable {
    private Integer auid;

    private Integer aduid;

    private Integer apuid;

    private String autype;

    private Integer applyno;

    private Integer austatus;

    private String austatusstring;

    private Date updatetime;

    private Date createtime;

    private Admin admin;

    private static final long serialVersionUID = 1L;

    public Integer getAuid() {
        return auid;
    }

    public void setAuid(Integer auid) {
        this.auid = auid;
    }

    public Integer getAduid() {
        return aduid;
    }

    public void setAduid(Integer aduid) {
        this.aduid = aduid;
    }

    public Integer getApuid() {
        return apuid;
    }

    public void setApuid(Integer apuid) {
        this.apuid = apuid;
    }

    public String getAutype() {
        return autype;
    }

    public void setAutype(String autype) {
        this.autype = autype;
    }

    public Integer getApplyno() {
        return applyno;
    }

    public void setApplyno(Integer applyno) {
        this.applyno = applyno;
    }

    public Integer getAustatus() {
        return austatus;
    }

    public void setAustatus(Integer austatus) {
        this.austatus = austatus;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getAustatusstring() {
        return austatusstring;
    }

    public void setAustatusstring(String austatusstring) {
        this.austatusstring = austatusstring;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Audits() {
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Audits other = (Audits) that;
        return (this.getAuid() == null ? other.getAuid() == null : this.getAuid().equals(other.getAuid()))
            && (this.getAduid() == null ? other.getAduid() == null : this.getAduid().equals(other.getAduid()))
            && (this.getApuid() == null ? other.getApuid() == null : this.getApuid().equals(other.getApuid()))
            && (this.getAutype() == null ? other.getAutype() == null : this.getAutype().equals(other.getAutype()))
            && (this.getApplyno() == null ? other.getApplyno() == null : this.getApplyno().equals(other.getApplyno()))
            && (this.getAustatus() == null ? other.getAustatus() == null : this.getAustatus().equals(other.getAustatus()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAuid() == null) ? 0 : getAuid().hashCode());
        result = prime * result + ((getAduid() == null) ? 0 : getAduid().hashCode());
        result = prime * result + ((getApuid() == null) ? 0 : getApuid().hashCode());
        result = prime * result + ((getAutype() == null) ? 0 : getAutype().hashCode());
        result = prime * result + ((getApplyno() == null) ? 0 : getApplyno().hashCode());
        result = prime * result + ((getAustatus() == null) ? 0 : getAustatus().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", auid=").append(auid);
        sb.append(", aduid=").append(aduid);
        sb.append(", apuid=").append(apuid);
        sb.append(", autype=").append(autype);
        sb.append(", applyno=").append(applyno);
        sb.append(", austatus=").append(austatus);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}